home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / mackun.sit / Mackun / É}ÉbÉNÉì1.0(ÉxÅ[É^î≈) / background_2809.txt < prev    next >
Text File  |  1990-05-15  |  25KB  |  1,150 lines

  1. -- background: 2809 from stack: in.0(├ëx├à[├ë^├«Γëê)
  2. -- bmap block id: 3316
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: âJü[âh
  6. ----- HyperTalk script -----
  7.  
  8.  
  9.  
  10.  
  11. -- part 14 (button)
  12. -- low flags: 00
  13. -- high flags: 0000
  14. -- rect: left=470 top=44 right=80 bottom=502
  15. -- title width / last selected line: 0
  16. -- icon id / first selected line: 20008 / 20008
  17. -- text alignment: 1
  18. -- font id: 0
  19. -- text size: 12
  20. -- style flags: 0
  21. -- line height: 16
  22. -- part name: â}âbâNâô
  23. ----- HyperTalk script -----
  24. on mouseUp
  25.   global Mrate,Mpitch,Mrobot
  26.  
  27.   if the optionKey is down
  28.   then
  29.   get  "├½I├½∩ú┐"
  30. else
  31.   answer "├ë}├ëb├ëN├ë├¼├çΓäó├▓b├çΓêæ├«├ò├á├ò├ç├ò" with "├½S├»├«" or "├½I├½∩ú┐" or "├¡├£├¡f"
  32. end if
  33.  
  34. set the cursor to 4
  35.  
  36. if it is "├½I├½∩ú┐"
  37. then
  38. get the selection
  39. if it is empty
  40. then
  41. answer "├▓b├çΓêæ├¿├ì├¿├ñ├ç∩ú┐├ë}├ëE├ëX├çΓëê├½I├½∩ú┐├ç┬╡├ç╞Æ├óΓê½├çΓëÑ├ç┬ó !" with "├│╧Ç├ó∩ú┐"
  42. exit mouseUp
  43. end if
  44. else
  45.   if it is "├½S├»├«"
  46.   then
  47.   get field "Idea Text"
  48. else
  49.   exit mouseUp
  50. end if
  51. end if
  52.  
  53. MackunSpeech it,Mrate,Mpitch,Mrobot
  54. end mouseUp
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. -- part 24 (button)
  63. -- low flags: 80
  64. -- high flags: 0000
  65. -- rect: left=198 top=11 right=30 bottom=217
  66. -- title width / last selected line: 0
  67. -- icon id / first selected line: 23962 / 23962
  68. -- text alignment: 1
  69. -- font id: 0
  70. -- text size: 12
  71. -- style flags: 0
  72. -- line height: 16
  73. -- part name: Note Button
  74. ----- HyperTalk script -----
  75. on mouseDown
  76.   global  optionF
  77.   get the short name of target
  78.   put "F"&(char 2 to  10 of it) into fName
  79.   put "G"&(char 2 to 10 of it) into gName
  80.  
  81.   if the optionKey is down
  82.   then
  83.   set the cursor to -15615
  84.   put "optionKey down"  into optionF
  85.   put the loc of target into oldXY
  86.   moveB
  87.   put the loc of target into newXY
  88.   put item 1 of newXY into NX
  89.   put item 2 of newXY into NY
  90.   put item 1 of oldXY into OX
  91.   put item 2 of oldXY into OY
  92.   get the loc of card field fName
  93.   put item 1 of it into FX
  94.   put item 2 of it into FY
  95.   set the loc of card field fName to  FX+(NX-OX),FY+(NY-OY)
  96.   get the rect of card field fName
  97.   put item 3 of it into X2
  98.   put item 4 of it into Y2
  99.   set the loc of button gName to X2-10,y2-10
  100.  
  101.   -- ├¿┬í├ú├⌐├ë`├ëF├ëb├ëN
  102.   get the loc of the target
  103.   put item 1 of it into X1
  104.   put item 2 of it into Y1
  105.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  106.   then
  107.   put "B," after field "Cut FIeld"
  108.   put the target after field "Cut FIeld"
  109.   put return after field "Cut FIeld"
  110.   get the short name of  the target
  111.   delete char 1 of it
  112.   put "F," after field "Cut FIeld"
  113.   put "card field F"&it after field "Cut FIeld"
  114.   put return after field "Cut FIeld"
  115.   put "B," after field "Cut FIeld"
  116.   put "button G"&it  after field "Cut FIeld"
  117.   put return after field "Cut FIeld"
  118. end if
  119. end if
  120. end mouseDown
  121.  
  122. on mouseUp
  123.   global optionF
  124.   get the short name of target
  125.   put "F"&(char 2 to  10 of it) into fName
  126.   put "G"&(char 2 to 10 of it) into gName
  127.  
  128.   if  optionF is not empty
  129.   then
  130.   put empty into optionF
  131.  
  132. else
  133.   if the hilite of bkgnd button "Set" is true
  134.   then
  135.   show card field fName
  136.   show button gName
  137.   set the hilite of bkgnd button "Set" to false
  138.   set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  139. else
  140.   if the visible of card field fName is true
  141.   then
  142.   hide card field fName
  143.   hide button gName
  144. else
  145.   show card field fName
  146.   show button gName
  147. end if
  148. end if
  149. end if
  150. end mouseUp
  151.  
  152.  
  153.  
  154.  
  155.  
  156. -- part 46 (button)
  157. -- low flags: 80
  158. -- high flags: 0000
  159. -- rect: left=199 top=23 right=39 bottom=218
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 10558 / 10558
  162. -- text alignment: 1
  163. -- font id: 0
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: Mackun button
  168. ----- HyperTalk script -----
  169. on mouseDown
  170.   global  optionF,Mrate,Mpitch,Mrobot
  171.   get the short name of target
  172.   put "F"&(char 2 to  10 of it) into fName
  173.   put "G"&(char 2 to 10 of it) into gName
  174.  
  175.   if the optionKey is down
  176.   then
  177.   set the cursor to -15615
  178.   put "optionKey down"  into optionF
  179.   put the loc of target into oldXY
  180.   moveB
  181.   put the loc of target into newXY
  182.   put item 1 of newXY into NX
  183.   put item 2 of newXY into NY
  184.   put item 1 of oldXY into OX
  185.   put item 2 of oldXY into OY
  186.   get the loc of card field fName
  187.   put item 1 of it into FX
  188.   put item 2 of it into FY
  189.   set the loc of card field fName to  FX+(NX-OX),FY+(NY-OY)
  190.   get the rect of card field fName
  191.   put item 3 of it into X2
  192.   put item 4 of it into Y2
  193.   set the loc of button gName to X2-10,y2-10
  194.  
  195.   -- ├¿┬í├ú├⌐├ë`├ëF├ëb├ëN
  196.   get the loc of the target
  197.   put item 1 of it into X1
  198.   put item 2 of it into Y1
  199.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  200.   then
  201.   put "B," after field "Cut FIeld"
  202.   put the target after field "Cut FIeld"
  203.   put return after field "Cut FIeld"
  204.   get the short name of  the target
  205.   delete char 1 of it
  206.   put "F," after field "Cut FIeld"
  207.   put "card field F"&it after field "Cut FIeld"
  208.   put return after field "Cut FIeld"
  209.   put "B," after field "Cut FIeld"
  210.   put "button G"&it  after field "Cut FIeld"
  211.   put return after field "Cut FIeld"
  212. end if
  213. end if
  214. end mouseDown
  215.  
  216. on mouseUp
  217.   global optionF
  218.   get the short name of target
  219.   put "F"&(char 2 to  10 of it) into fName
  220.   put "G"&(char 2 to 10 of it) into gName
  221.  
  222.   if  optionF is not empty
  223.   then
  224.   put empty into optionF
  225.  
  226. else
  227.   if the hilite of bkgnd button "Set" is true
  228.   then
  229.   if  the visible of card field fName is true
  230.   then
  231.   hide card field fName
  232.   hide button gName
  233. else
  234.   show card field fName
  235.   show button gName
  236. end if
  237. set the hilite of bkgnd button "Set" to false
  238. set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  239. else
  240.   if the visible of card field fName is false
  241.   then
  242.   show card field fName
  243. end if
  244. -- Speak
  245. get card field fName
  246. put the number of lines in it  into flen
  247. repeat with n=1 to   flen
  248.   put kanToRom(line n of it) into romdata
  249.   if romdata is empty
  250.   then
  251.   answer "Hyper Card├çΓêåkanji.dat├çΓäó├¼├ÿ├çΓêé├ët├ëH├ë├ú├ë_├¼ΓÇí├çΓǪ├¼┬╕├ç┬í├ç╞Æ├ç┬ó├çΓÇ╣├çΓêæ├ç┬⌐├àH"
  252. else
  253.   put MackunR(kanToRom(line n of it),Mrate,Mpitch,Mrobot) into dummy
  254.   if (dummy is not empty)
  255.   then
  256.   answer "MacinTalk├çΓäó├ëV├ëX├ëe├ë├ä├ët├ëH├ë├ú├ë_├à[├çΓǪ├¼┬╕├ç┬í├ç╞Æ├ç┬ó├çΓÇ╣├çΓêæ├ç┬⌐?"
  257. end if
  258. end if
  259. end  repeat
  260. if the visible of card field fName is true
  261. then
  262. hide card field fName
  263. hide button gName
  264. end if
  265. end if
  266. end if
  267. end mouseUp
  268.  
  269.  
  270.  
  271. -- part 53 (button)
  272. -- low flags: 00
  273. -- high flags: 0000
  274. -- rect: left=473 top=201 right=229 bottom=502
  275. -- title width / last selected line: 0
  276. -- icon id / first selected line: 8538 / 8538
  277. -- text alignment: 1
  278. -- font id: 0
  279. -- text size: 12
  280. -- style flags: 0
  281. -- line height: 16
  282. -- part name: îƒì⌡
  283. ----- HyperTalk script -----
  284. on mouseUp
  285.   global finData
  286.   if  the optionKey is down
  287.   then
  288.   get finData
  289. else
  290.   ask "├ç┬╗├çΓǪ├ç∩ú┐├¡T├ç┬╡├çΓÇ╣├çΓêæ├ç┬⌐?" with finData
  291. end if
  292.  
  293. if it is not empty
  294. then
  295. put it into finData
  296. push this card
  297. find finData
  298. repeat forever
  299.   answer  "Find " & quote & finData & quote with "├⌐├╝├Ñ├╝├º─▒" or "├¿I├│╧Ç"
  300.   if it is "├⌐├╝├Ñ├╝├º─▒"
  301.   then
  302.   find finData
  303. else
  304.   exit mouseUp
  305. end if
  306. end repeat
  307. end if
  308. end mouseUp
  309.  
  310.  
  311.  
  312.  
  313. -- part 54 (button)
  314. -- low flags: 00
  315. -- high flags: 0000
  316. -- rect: left=473 top=232 right=260 bottom=503
  317. -- title width / last selected line: 0
  318. -- icon id / first selected line: 32670 / 32670
  319. -- text alignment: 1
  320. -- font id: 0
  321. -- text size: 12
  322. -- style flags: 0
  323. -- line height: 16
  324. -- part name: Delete Card
  325. ----- HyperTalk script -----
  326. on mouseUp
  327.   set the cursor to 4
  328.   show all cards
  329. end mouseUp
  330.  
  331.  
  332.  
  333. -- part 55 (button)
  334. -- low flags: 00
  335. -- high flags: 0000
  336. -- rect: left=470 top=264 right=298 bottom=504
  337. -- title width / last selected line: 0
  338. -- icon id / first selected line: 25321 / 25321
  339. -- text alignment: 1
  340. -- font id: 0
  341. -- text size: 12
  342. -- style flags: 0
  343. -- line height: 16
  344. -- part name: âeâLâXâgé⌐éτ
  345. ----- HyperTalk script -----
  346. on mouseUp
  347.   global fname
  348.   put xgetFile() into fName
  349.   get fName
  350.   if it is  empty
  351.   then
  352.   exit mouseUp
  353. else
  354.   set the cursor to 4
  355.   put it into fname
  356.   open file fname
  357.   repeat forever
  358.     read from file fname until return
  359.     if it is not empty
  360.     then
  361.     put it after data
  362.   else
  363.     exit repeat
  364.   end if
  365. end repeat
  366. close file fname
  367. end if
  368. put data into field "Idea Text"
  369. end mouseUp
  370.  
  371.  
  372.  
  373.  
  374. -- part 56 (button)
  375. -- low flags: 00
  376. -- high flags: 0000
  377. -- rect: left=469 top=176 right=199 bottom=505
  378. -- title width / last selected line: 0
  379. -- icon id / first selected line: 4724 / 4724
  380. -- text alignment: 1
  381. -- font id: 0
  382. -- text size: 12
  383. -- style flags: 0
  384. -- line height: 16
  385. -- part name: Delete Card
  386. ----- HyperTalk script -----
  387. on mouseUp
  388.   set the lockScreen to true
  389.   get the number of cards
  390.   if it is 2
  391.   then
  392.   answer "├ºΓëê├ÑΓÇ₧├ç├â├ëJ├à|├ëh├ç├ò├¿┬í├ú├⌐├çΓëê├ç┬┤├çΓÇ╣├ç╧Ç├ç├Æ" with "OK"
  393.   exit mouseUp
  394. else
  395.   answer "├ç┬▒├ç├â├ëJ├à[├ëh├ç∩ú┐├¿┬í├ú├⌐├ç┬╡├çΓÇ╣├çΓêæ├ç┬⌐?" with "├ç├ò├ç┬ó" or "├ç┬ó├ç┬ó├ç┬╢"
  396.   if it="├ç├ò├ç┬ó"
  397.   then
  398.   set the cursor to 4
  399.   lock screen
  400.   doMenu "Delete Card"
  401.   go prev
  402.   unlock screen
  403. end if
  404. end if
  405. end mouseUp
  406.  
  407.  
  408.  
  409.  
  410. -- part 58 (button)
  411. -- low flags: 00
  412. -- high flags: 0000
  413. -- rect: left=469 top=148 right=173 bottom=505
  414. -- title width / last selected line: 0
  415. -- icon id / first selected line: 27114 / 27114
  416. -- text alignment: 1
  417. -- font id: 0
  418. -- text size: 12
  419. -- style flags: 0
  420. -- line height: 16
  421. -- part name: New Card
  422. ----- HyperTalk script -----
  423. on mouseUp
  424.   ask "├¬V├úK├ëJ├à[├ëh├ç├â├▒┬║├½O├ç├ò?" with the short name of target
  425.   if it is not empty
  426.   then
  427.   set the cursor to 4
  428.   doMenu "New Card"
  429.   set the name of this card to it
  430.   put it into field "Title"
  431. else
  432.   exit mouseUp
  433. end if
  434. end mouseUp
  435.  
  436.  
  437.  
  438. -- part 59 (button)
  439. -- low flags: 00
  440. -- high flags: 0000
  441. -- rect: left=471 top=303 right=338 bottom=503
  442. -- title width / last selected line: 0
  443. -- icon id / first selected line: 10127 / 10127
  444. -- text alignment: 1
  445. -- font id: 0
  446. -- text size: 12
  447. -- style flags: 0
  448. -- line height: 16
  449. -- part name: âeâLâXâgé╓
  450. ----- HyperTalk script -----
  451. on mouseUp
  452.   global fname
  453.   put xputFile() into fName
  454.   get fName
  455.   if it is not empty
  456.   then
  457.   set the cursor to 4
  458.   put it into fname
  459.   open file fname
  460.   write field "Idea Text" to file fname
  461.   close file fname
  462. end if
  463. end mouseUp
  464.  
  465.  
  466.  
  467.  
  468.  
  469. -- part 61 (button)
  470. -- low flags: 80
  471. -- high flags: 0000
  472. -- rect: left=106 top=8 right=22 bottom=121
  473. -- title width / last selected line: 0
  474. -- icon id / first selected line: 0 / 0
  475. -- text alignment: 1
  476. -- font id: 0
  477. -- text size: 12
  478. -- style flags: 0
  479. -- line height: 16
  480. -- part name: refButton
  481. ----- HyperTalk script -----
  482. on mouseDown
  483.   global  optionF
  484.   if the optionKey is down
  485.   then
  486.   set the cursor to -15615
  487.   put "optionKey down"  into optionF
  488.   set the style of the target to rectangle
  489.   moveB
  490.   get the loc of the target
  491.   put item 1 of it into X1
  492.   put item 2 of it into Y1
  493.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  494.   then
  495.   set the style of the target to rectangle
  496.   put "B," after field "Cut FIeld"
  497.   put the target after field "Cut FIeld"
  498.   put return after field "Cut FIeld"
  499. end if
  500. set the style of the target to transparent
  501. end if
  502. end mouseDown
  503.  
  504. on mouseUp
  505.   global optionF
  506.   put the short name of target into bName
  507.  
  508.   if  optionF is not empty
  509.   then
  510.   put empty into optionF
  511.  
  512. else
  513.   if the hilite of bkgnd button "Set" is true
  514.   then
  515.   ask "├ë├ñ├ë├¼├ëN├çΓêæ├ç├ê├ëJ├à[├ëh├ç├â├▒┬║├½O?" with the short name of target
  516.   if it is not empty
  517.   then
  518.   get char 1 to 28 of it
  519.   set the name of target to it
  520. end if
  521. set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  522. set the hilite of bkgnd button "Set" to false
  523. hide msg
  524.  
  525. else
  526.   -- go to Card
  527.   put the short name of target into cName
  528.   visual effect  barn door open slow
  529.   push this card
  530.   go card cName
  531.  
  532.   --Err ├ë`├ëF├ëb├ëN
  533.   if the result is not empty
  534.   then
  535.   answer "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç∩ú┐├ç┬¼├çΓëá├ç├ï├çΓÇ╣├çΓêæ├ç┬⌐├àH" with "OK" or "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  536.   if it is "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  537.   then
  538.   exit mouseUp
  539. end if
  540. ask "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç├â├▒┬║├½O├ç├ò?" with cName
  541. if it is empty
  542. then
  543. exit mouseUp
  544. else
  545.   get char 1 to 28 of it
  546.   put it into cName
  547.   set the name of target to cName
  548.   doMenu "New Card"
  549.   set the name of this card to cName
  550.   put cName into field "Title"
  551. end if
  552. end if
  553. end if
  554. end if
  555. end mouseUp
  556.  
  557. on mouseEnter
  558.   set the hilite of the target to true
  559. end mouseEnter
  560.  
  561. on mouseLeave
  562.   set the hilite of the target to false
  563. end mouseLeave
  564.  
  565.  
  566.  
  567.  
  568.  
  569. -- part 77 (button)
  570. -- low flags: 80
  571. -- high flags: 0002
  572. -- rect: left=170 top=12 right=24 bottom=182
  573. -- title width / last selected line: 0
  574. -- icon id / first selected line: 0 / 0
  575. -- text alignment: 1
  576. -- font id: 0
  577. -- text size: 12
  578. -- style flags: 0
  579. -- line height: 16
  580. -- part name: grow button
  581. ----- HyperTalk script -----
  582. on mouseDown
  583.   get the short name of target
  584.   put "B"&(char 2 to 10 of it) into bName
  585.   put "F"&(char 2 to 10 of it) into fName
  586.  
  587.   growB
  588.   put the rect of  card field fName into fRect
  589.   put the rect of target into bRect
  590.   put item 1 of fRect into X1
  591.   put item 2 of fRect into Y1
  592.   put item 3 of bRect into X2
  593.   put item 4 of bRect into Y2
  594.   set the rect of  card field fName to X1,Y1,X2+4,Y2+4
  595.   set the loc of button bName to  X1+7,Y1-3
  596.   hide msg
  597. end mouseDown
  598.  
  599.  
  600.  
  601.  
  602. -- part 82 (button)
  603. -- low flags: 80
  604. -- high flags: 0002
  605. -- rect: left=105 top=22 right=34 bottom=117
  606. -- title width / last selected line: 0
  607. -- icon id / first selected line: 0 / 0
  608. -- text alignment: 1
  609. -- font id: 0
  610. -- text size: 12
  611. -- style flags: 0
  612. -- line height: 16
  613. -- part name: grow button2
  614. ----- HyperTalk script -----
  615. on mouseDown
  616.   get the short name of target
  617.   put "B"&(char 2 to 10 of it) into bName
  618.   put "F"&(char 2 to 10 of it) into fName
  619.  
  620.   growB
  621.   put the rect of  card field fName into fRect
  622.   put the rect of target into bRect
  623.   put item 1 of fRect into X1
  624.   put item 2 of fRect into Y1
  625.   put item 3 of bRect into X2
  626.   put item 4 of bRect into Y2
  627.   set the rect of  card field fName to X1,Y1,X2+4,Y2+4
  628.   set the loc of button bName to  X1+5,Y1-7
  629.   hide msg
  630. end mouseDown
  631.  
  632.  
  633.  
  634.  
  635. -- part 83 (button)
  636. -- low flags: 00
  637. -- high flags: 0000
  638. -- rect: left=473 top=21 right=39 bottom=502
  639. -- title width / last selected line: 0
  640. -- icon id / first selected line: 20689 / 20689
  641. -- text alignment: 1
  642. -- font id: 0
  643. -- text size: 12
  644. -- style flags: 0
  645. -- line height: 16
  646. -- part name: New Button
  647. ----- HyperTalk script -----
  648. on mouseUp
  649.   visual effect dissolve slow to inverse
  650.   go home
  651. end mouseUp
  652.  
  653.  
  654.  
  655. -- part 107 (button)
  656. -- low flags: 80
  657. -- high flags: 0000
  658. -- rect: left=106 top=22 right=36 bottom=123
  659. -- title width / last selected line: 0
  660. -- icon id / first selected line: 7861 / 7861
  661. -- text alignment: 1
  662. -- font id: 0
  663. -- text size: 12
  664. -- style flags: 0
  665. -- line height: 16
  666. -- part name: Stack Button
  667. ----- HyperTalk script -----
  668. on mouseDown
  669.   global  optionF
  670.   if the optionKey is down
  671.   then
  672.   set the cursor to -15615
  673.   put "optionKey down"  into optionF
  674.   moveB
  675.   get the loc of the target
  676.   put item 1 of it into X1
  677.   put item 2 of it into Y1
  678.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  679.   then
  680.   put "B," after field "Cut FIeld"
  681.   put the target after field "Cut FIeld"
  682.   put return after field "Cut FIeld"
  683. end if
  684. end if
  685. end mouseDown
  686.  
  687. on mouseUp
  688.   global optionF
  689.   put the short name of target into bName
  690.  
  691.   if  optionF is not empty
  692.   then
  693.   put empty into optionF
  694.  
  695. else
  696.   if the hilite of bkgnd button "Set" is true
  697.   then
  698.   ask "├ë├ñ├ë├¼├ëN├çΓêæ├ç├ê├ëm├à|├ëg├ëX├ë^├ëb├ëN├ç├â├▒┬║├½O?" with (item 1 of (the short name of target))
  699.   put it into sName
  700.   ask "├ë├ñ├ë├¼├ëN├çΓêæ├ç├ê├ëJ├à[├ëh├ç├â├▒┬║├½O?" with (item 2 of (the short name of target))
  701.   get char 1 to 28 of it
  702.   put it into cName
  703.   if sName is not empty
  704.   then
  705.   set the name of target to sName
  706. end if
  707. if cName is not empty
  708. then
  709. get the short name of  the target
  710. set the name of  the target to (it)&","&(cName)
  711. end if
  712. set the hilite of bkgnd button "Set" to false
  713. set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  714. hide msg
  715.  
  716. else
  717.   -- go to Stack
  718.   put (item 1 of (the short name of target)) into sName
  719.   put (item 2 of (the short name of target)) into cName
  720.   visual effect  barn door open slow
  721.   push this card
  722.   go sName
  723.   --Err ├ë`├ëF├ëb├ëN
  724.   if the result is not empty
  725.   then
  726.   answer "├¬V├ç┬╡├ç┬ó├ëm├à|├ëg├ëX├ë^├ëb├ëN├ç∩ú┐├ç┬¼├çΓëá├ç├ï├çΓÇ╣├çΓêæ├ç┬⌐├àH" with "OK" or "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  727.   if it is "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  728.   then
  729.   exit mouseUp
  730. end if
  731. doMenu "new stack..."
  732. put (the short name of this stack ) into sName
  733. if  sName is "HyperNote with Mackun"
  734. then
  735. put empty into sName
  736. end if
  737. ask "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç├â├▒┬║├½O├ç├ò├àH" with empty
  738. get char 1 to 28 of it
  739. put it into cName
  740. set the  name of this card to cName
  741. put cName into field "Title"
  742. pop card
  743. if sName is not empty
  744. then
  745. set the name of  the target to sName
  746. end if
  747. if cName is not empty
  748. then
  749. get the short name of  the target
  750. set the name of  the target to (it)&","&(cName)
  751. end if
  752. end if
  753. -- go card
  754. go card cName
  755. end if
  756. end if
  757. end mouseUp
  758.  
  759.  
  760.  
  761. -- part 116 (field)
  762. -- low flags: 80
  763. -- high flags: 0002
  764. -- rect: left=250 top=177 right=279 bottom=451
  765. -- title width / last selected line: 0
  766. -- icon id / first selected line: 0 / 0
  767. -- text alignment: 0
  768. -- font id: 16384
  769. -- text size: 12
  770. -- style flags: 0
  771. -- line height: 16
  772. -- part name: Cut Field
  773.  
  774.  
  775. -- part 124 (button)
  776. -- low flags: 80
  777. -- high flags: 0000
  778. -- rect: left=124 top=22 right=36 bottom=139
  779. -- title width / last selected line: 0
  780. -- icon id / first selected line: 24478 / 24478
  781. -- text alignment: 1
  782. -- font id: 0
  783. -- text size: 12
  784. -- style flags: 0
  785. -- line height: 16
  786. -- part name: ref2 Button
  787. ----- HyperTalk script -----
  788. on mouseDown
  789.   global  optionF
  790.   if the optionKey is down
  791.   then
  792.   set the cursor to -15615
  793.   put "optionKey down"  into optionF
  794.   set the style of the target to rectangle
  795.   moveB
  796.   get the loc of the target
  797.   put item 1 of it into X1
  798.   put item 2 of it into Y1
  799.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  800.   then
  801.   set the style of the target to rectangle
  802.   put "B," after field "Cut FIeld"
  803.   put the target after field "Cut FIeld"
  804.   put return after field "Cut FIeld"
  805. end if
  806. set the style of the target to transparent
  807. end if
  808. end mouseDown
  809.  
  810. on mouseUp
  811.   global optionF
  812.   put the short name of target into bName
  813.  
  814.   if  optionF is not empty
  815.   then
  816.   put empty into optionF
  817.  
  818. else
  819.   if the hilite of bkgnd button "Set" is true
  820.   then
  821.   ask "├ë├ñ├ë├¼├ëN├çΓêæ├ç├ê├ëJ├à[├ëh├ç├â├▒┬║├½O?" with the short name of target
  822.   if it is not empty
  823.   then
  824.   get char 1 to 28 of it
  825.   set the name of target to it
  826. end if
  827. set the hilite of bkgnd button "Set" to false
  828. set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  829. hide msg
  830.  
  831. else
  832.   -- go to Card
  833.   put the short name of target into cName
  834.   visual effect  barn door open slow
  835.   push this card
  836.   go card cName
  837.  
  838.   --Err ├ë`├ëF├ëb├ëN
  839.   if the result is not empty
  840.   then
  841.   answer "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç∩ú┐├ç┬¼├çΓëá├ç├ï├çΓÇ╣├çΓêæ├ç┬⌐├àH" with "OK" or "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  842.   if it is "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  843.   then
  844.   exit mouseUp
  845. end if
  846. ask "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç├â├▒┬║├½O├ç├ò?" with cName
  847. if it is empty
  848. then
  849. exit mouseUp
  850. else
  851.   get char 1 to 28 of it
  852.   put it into cName
  853.   set the name of target to cName
  854.   doMenu "New Card"
  855.   set the name of this card to cName
  856.   put cName into field "Title"
  857. end if
  858. end if
  859. end if
  860. end if
  861. end mouseUp
  862.  
  863.  
  864.  
  865.  
  866. -- part 132 (field)
  867. -- low flags: 80
  868. -- high flags: 0002
  869. -- rect: left=462 top=18 right=342 bottom=512
  870. -- title width / last selected line: 0
  871. -- icon id / first selected line: 0 / 0
  872. -- text alignment: 0
  873. -- font id: 16384
  874. -- text size: 12
  875. -- style flags: 0
  876. -- line height: 16
  877. -- part name: buttonMask
  878.  
  879.  
  880. -- part 134 (button)
  881. -- low flags: 80
  882. -- high flags: 8002
  883. -- rect: left=5 top=320 right=337 bottom=61
  884. -- title width / last selected line: 0
  885. -- icon id / first selected line: 0 / 0
  886. -- text alignment: 1
  887. -- font id: 0
  888. -- text size: 12
  889. -- style flags: 0
  890. -- line height: 16
  891. -- part name: Present
  892. ----- HyperTalk script -----
  893. on mouseUp
  894.   set the cursor to 4
  895.   if the short name of the target is "Present"
  896.   then
  897.   show menubar
  898.   set the loc of bkgnd button "menubar" to 256,25
  899.   set the hilite of bkgnd button "menubar" to false
  900.   show  field "buttonMask"
  901.   set the name of the target to "Edit"
  902. else
  903.   hide menubar
  904.   set the loc of bkgnd button "menubar" to 256,6
  905.   set the hilite of bkgnd button "menubar" to true
  906.   hide  field "buttonMask"
  907.   set the name of the target to "Present"
  908. end if
  909. end mouseUp
  910.  
  911.  
  912.  
  913. -- part 137 (field)
  914. -- low flags: 00
  915. -- high flags: 0004
  916. -- rect: left=4 top=40 right=340 bottom=463
  917. -- title width / last selected line: 0
  918. -- icon id / first selected line: 0 / 0
  919. -- text alignment: 0
  920. -- font id: 16384
  921. -- text size: 12
  922. -- style flags: 0
  923. -- line height: 16
  924. -- part name: Idea Text
  925.  
  926.  
  927. -- part 138 (button)
  928. -- low flags: 00
  929. -- high flags: 0000
  930. -- rect: left=437 top=312 right=339 bottom=465
  931. -- title width / last selected line: 0
  932. -- icon id / first selected line: 1950 / 1950
  933. -- text alignment: 1
  934. -- font id: 0
  935. -- text size: 12
  936. -- style flags: 0
  937. -- line height: 16
  938. -- part name: Page
  939. ----- HyperTalk script -----
  940. on mouseUp
  941.   get the clickLoc
  942.   put item 1 of it into X
  943.   put item 2 of it into Y
  944.   get the rect of target
  945.   put item 2 of it into minY
  946.   put item 3 of it into maxX
  947.  
  948.   put minY-(X-maxX) into Y2
  949.   if (Y>=Y2)
  950.   then
  951.   visual effect  wipe right
  952.   doMenu "Prev"
  953. else
  954.   lock screen
  955.   doMenu "Next"
  956.   if  the short name of this bkgnd is not "├ëJ├à[├ëh"
  957.   then
  958.   lock screen
  959.   go first
  960. end if
  961. unlock screen with wipe left
  962. end if
  963. end mouseUp
  964.  
  965.  
  966.  
  967.  
  968. -- part 140 (button)
  969. -- low flags: 80
  970. -- high flags: 0000
  971. -- rect: left=126 top=8 right=22 bottom=143
  972. -- title width / last selected line: 0
  973. -- icon id / first selected line: 21405 / 21405
  974. -- text alignment: 1
  975. -- font id: 0
  976. -- text size: 12
  977. -- style flags: 0
  978. -- line height: 16
  979. -- part name: Index Button
  980. ----- HyperTalk script -----
  981. on mouseDown
  982.   global  optionF
  983.   if the optionKey is down
  984.   then
  985.   set the cursor to -15615
  986.   put "optionKey down"  into optionF
  987.   moveB
  988.   get the loc of the target
  989.   put item 1 of it into X1
  990.   put item 2 of it into Y1
  991.   if ((X1<506) and (X1>469) and (Y1<339) and (Y1>306))
  992.   then
  993.   put "B," after field "Cut FIeld"
  994.   put the target after field "Cut FIeld"
  995.   put return after field "Cut FIeld"
  996. end if
  997. end if
  998. end mouseDown
  999.  
  1000. on mouseUp
  1001.   global optionF
  1002.   put the short name of target into bName
  1003.  
  1004.   if  optionF is not empty
  1005.   then
  1006.   put empty into optionF
  1007.  
  1008. else
  1009.   if the hilite of bkgnd button "Set" is true
  1010.   then
  1011.   ask "├ë├ñ├ë├¼├ëN├çΓêæ├ç├ê├ëJ├à[├ëh├ç├â├▒┬║├½O?" with the short name of target
  1012.   if it is not empty
  1013.   then
  1014.   get char 1 to 28 of it
  1015.   set the name of target to it
  1016. end if
  1017. set the hilite of bkgnd button "Set" to false
  1018. set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  1019. hide msg
  1020.  
  1021. else
  1022.   -- go to Card
  1023.   put the short name of target into cName
  1024.   visual effect  barn door open slow
  1025.   push this card
  1026.   go card cName
  1027.  
  1028.   --Err ├ë`├ëF├ëb├ëN
  1029.   if the result is not empty
  1030.   then
  1031.   answer "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç∩ú┐├ç┬¼├çΓëá├ç├ï├çΓÇ╣├çΓêæ├ç┬⌐├àH" with "OK" or "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  1032.   if it is "├ëL├ë├ë├ë├¼├ëZ├ë├ú"
  1033.   then
  1034.   exit mouseUp
  1035. end if
  1036. ask "├¬V├ç┬╡├ç┬ó├ëJ├à[├ëh├ç├â├▒┬║├½O├ç├ò?" with cName
  1037. if it is empty
  1038. then
  1039. exit mouseUp
  1040. else
  1041.   get char 1 to 28 of it
  1042.   put it into cName
  1043.   set the name of target to cName
  1044.   doMenu "New Card"
  1045.   set the name of this card to cName
  1046. end if
  1047. end if
  1048. end if
  1049. end if
  1050. end mouseUp
  1051.  
  1052.  
  1053.  
  1054. -- part 143 (field)
  1055. -- low flags: 00
  1056. -- high flags: 0004
  1057. -- rect: left=4 top=21 right=39 bottom=462
  1058. -- title width / last selected line: 0
  1059. -- icon id / first selected line: 0 / 0
  1060. -- text alignment: 0
  1061. -- font id: 16384
  1062. -- text size: 12
  1063. -- style flags: 0
  1064. -- line height: 16
  1065. -- part name: Title
  1066.  
  1067.  
  1068. -- part 144 (button)
  1069. -- low flags: 00
  1070. -- high flags: C004
  1071. -- rect: left=0 top=0 right=12 bottom=512
  1072. -- title width / last selected line: 0
  1073. -- icon id / first selected line: 0 / 0
  1074. -- text alignment: 1
  1075. -- font id: 0
  1076. -- text size: 10
  1077. -- style flags: 0
  1078. -- line height: 13
  1079. -- part name: menubar
  1080. ----- HyperTalk script -----
  1081. on mouseUp
  1082.   get the loc of target
  1083.   put item 1 of it into X
  1084.   put item 2 of it into Y
  1085.  
  1086.   if the hilite of target  is true
  1087.   then
  1088.   show menubar
  1089.   set the loc of bkgnd button "menubar" to 256,25
  1090.   set the hilite of target to false
  1091. else
  1092.   hide menubar
  1093.   set the loc of bkgnd button "menubar" to 256,6
  1094.   set the hilite of target to true
  1095. end if
  1096. end mouseUp
  1097.  
  1098.  
  1099.  
  1100. -- part 145 (button)
  1101. -- low flags: 00
  1102. -- high flags: 8001
  1103. -- rect: left=473 top=83 right=103 bottom=501
  1104. -- title width / last selected line: 0
  1105. -- icon id / first selected line: 0 / 0
  1106. -- text alignment: 1
  1107. -- font id: 0
  1108. -- text size: 12
  1109. -- style flags: 0
  1110. -- line height: 16
  1111. -- part name: É▌ÆΦ
  1112. ----- HyperTalk script -----
  1113. on mouseUp
  1114.   set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  1115.   visual effect  barn door open
  1116.   go card "MackunSet"
  1117. end mouseUp
  1118.  
  1119.  
  1120.  
  1121. -- part 146 (button)
  1122. -- low flags: 00
  1123. -- high flags: 8001
  1124. -- rect: left=473 top=113 right=133 bottom=501
  1125. -- title width / last selected line: 0
  1126. -- icon id / first selected line: 0 / 0
  1127. -- text alignment: 1
  1128. -- font id: 0
  1129. -- text size: 12
  1130. -- style flags: 0
  1131. -- line height: 16
  1132. -- part name: Ä½Åæ
  1133. ----- HyperTalk script -----
  1134. on mouseUp
  1135.   put the selection into SelStr
  1136.   set the hilite of bkgnd button "├ë}├ëb├ëN├ë├¼" to false
  1137.   visual effect  barn door open
  1138.   go card "├⌐┬┤├¿├½"
  1139.   if SelStr is not empty
  1140.   then
  1141.   put SelStr into card field "t1"
  1142.   put empty into card field "t2"
  1143.   click at the loc of card field "t2"
  1144. else
  1145.   click at the loc of card field "t1"
  1146. end if
  1147. end mouseUp
  1148.  
  1149.  
  1150.